package com.yzh.oop5.teacher;
import com.yzh.oop5.teacher.OuterClass.*;

public class Test {
    public static void main(String[] args) {
        OuterClass oc = new OuterClass();
        oc.methodOut2();

        //直接创建一个外部类的对象
        //OuterClass.InnerClass innerClass = new OuterClass().new InnerClass();
        OuterClass oc2 = new OuterClass();
        InnerClass ic = oc2.new InnerClass();
        ic.methodInner();
    }
}
